home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2943 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail textAlgol 68 source text default
99% file Pascal source, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 4a 6f | 68 6e 20 56 69 6c 62 75 |From: Jo|hn Vilbu|
|00000010| 72 6e 20 3c 4a 56 69 6c | 62 75 72 6e 40 6e 6f 76 |rn <JVil|burn@nov|
|00000020| 65 6c 6c 2e 63 6f 6d 3e | 0a 4f 72 67 61 6e 69 7a |ell.com>|.Organiz|
|00000030| 61 74 69 6f 6e 3a 20 4e | 6f 76 65 6c 6c 2c 20 49 |ation: N|ovell, I|
|00000040| 6e 63 2e 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |nc..X-Ma|iler: Mo|
|00000050| 7a 69 6c 6c 61 20 31 2e | 32 4e 20 28 57 69 6e 64 |zilla 1.|2N (Wind|
|00000060| 6f 77 73 3b 20 49 3b 20 | 33 32 62 69 74 29 0a 4d |ows; I; |32bit).M|
|00000070| 49 4d 45 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |IME-Vers|ion: 1.0|
|00000080| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000090| 70 2e 6c 61 6e 67 2e 63 | 0a 54 6f 3a 20 63 6d 6f |p.lang.c|.To: cmo|
|000000a0| 6e 67 6f 6c 64 40 6d 61 | 67 6e 75 73 2e 61 63 73 |ngold@ma|gnus.acs|
|000000b0| 2e 6f 68 69 6f 2d 73 74 | 61 74 65 2e 65 64 75 0a |.ohio-st|ate.edu.|
|000000c0| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 73 73 63 |Subject:| Re: ssc|
|000000d0| 61 6e 66 20 70 72 6f 62 | 6c 65 6d 73 0a 52 65 66 |anf prob|lems.Ref|
|000000e0| 65 72 65 6e 63 65 73 3a | 20 3c 34 65 34 63 32 76 |erences:| <4e4c2v|
|000000f0| 24 6a 32 67 40 6d 61 74 | 68 73 65 72 76 2e 6d 70 |$j2g@mat|hserv.mp|
|00000100| 73 2e 6f 68 69 6f 2d 73 | 74 61 74 65 2e 65 64 75 |s.ohio-s|tate.edu|
|00000110| 3e 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |>.Conten|t-Transf|
|00000120| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|00000130| 74 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |t.Conten|t-Type: |
|00000140| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|00000150| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 4e 4e 54 |set=us-a|scii.NNT|
|00000160| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000170| 6a 76 69 6c 62 75 72 6e | 2e 6e 70 64 2e 70 72 6f |jvilburn|.npd.pro|
|00000180| 76 6f 2e 6e 6f 76 65 6c | 6c 2e 63 6f 6d 0a 4d 65 |vo.novel|l.com.Me|
|00000190| 73 73 61 67 65 2d 49 44 | 3a 20 3c 33 31 30 36 66 |ssage-ID|: <3106f|
|000001a0| 61 61 63 2e 30 40 6e 65 | 77 73 2e 70 72 6f 76 6f |aac.0@ne|ws.provo|
|000001b0| 2e 6e 6f 76 65 6c 6c 2e | 63 6f 6d 3e 0a 44 61 74 |.novell.|com>.Dat|
|000001c0| 65 3a 20 32 35 20 4a 61 | 6e 20 39 36 20 30 33 3a |e: 25 Ja|n 96 03:|
|000001d0| 33 36 3a 31 32 20 47 4d | 54 0a 50 61 74 68 3a 20 |36:12 GM|T.Path: |
|000001e0| 6e 65 77 73 2e 70 72 6f | 76 6f 2e 6e 6f 76 65 6c |news.pro|vo.novel|
|000001f0| 6c 2e 63 6f 6d 21 0a 0a | 43 68 72 69 73 20 4d 6f |l.com!..|Chris Mo|
|00000200| 6e 67 6f 6c 64 20 3c 63 | 6d 6f 6e 67 6f 6c 64 40 |ngold <c|mongold@|
|00000210| 6d 61 67 6e 75 73 2e 61 | 63 73 2e 6f 68 69 6f 2d |magnus.a|cs.ohio-|
|00000220| 73 74 61 74 65 2e 65 64 | 75 3e 20 77 72 6f 74 65 |state.ed|u> wrote|
|00000230| 3a 0a 3e 48 65 6c 6c 6f | 2c 0a 3e 09 49 27 6d 20 |:.>Hello|,.>.I'm |
|00000240| 73 6f 72 72 79 20 69 66 | 20 74 68 69 73 20 69 73 |sorry if| this is|
|00000250| 20 61 6e 20 69 6e 61 70 | 70 72 6f 70 72 69 61 74 | an inap|propriat|
|00000260| 65 20 74 6f 70 69 63 2c | 20 62 75 74 20 49 27 76 |e topic,| but I'v|
|00000270| 65 20 74 72 69 65 64 0a | 3e 65 76 65 72 79 74 68 |e tried.|>everyth|
|00000280| 69 6e 67 20 65 6c 73 65 | 2e 20 20 49 20 63 61 6e |ing else|. I can|
|00000290| 27 74 20 73 65 65 6d 20 | 74 6f 20 67 65 74 20 73 |'t seem |to get s|
|000002a0| 73 63 61 6e 66 20 74 6f | 20 74 6f 20 73 65 70 61 |scanf to| to sepa|
|000002b0| 72 61 74 65 20 61 20 73 | 74 72 69 6e 67 0a 3e 69 |rate a s|tring.>i|
|000002c0| 6e 74 6f 20 76 61 72 69 | 6f 75 73 20 76 61 72 69 |nto vari|ous vari|
|000002d0| 61 62 6c 65 20 74 79 70 | 65 73 2e 20 20 48 65 72 |able typ|es. Her|
|000002e0| 65 20 69 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 3a |e is an |example:|
|000002f0| 0a 3e 0a 3e 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.>.>#inc|lude <st|
|00000300| 64 69 6f 2e 68 3e 0a 3e | 0a 3e 76 6f 69 64 20 6d |dio.h>.>|.>void m|
|00000310| 61 69 6e 28 29 0a 3e 7b | 0a 3e 63 68 61 72 20 69 |ain().>{|.>char i|
|00000320| 6e 70 75 74 5b 32 30 5d | 2c 20 63 72 61 70 5b 31 |nput[20]|, crap[1|
|00000330| 37 5d 2c 20 73 65 67 6d | 65 6e 74 5b 36 5d 2c 20 |7], segm|ent[6], |
|00000340| 73 65 67 5f 6c 65 6e 5b | 33 5d 2c 20 62 65 67 69 |seg_len[|3], begi|
|00000350| 6e 5b 33 5d 2c 20 6c 6f | 61 64 5b 33 5d 3b 0a 3e |n[3], lo|ad[3];.>|
|00000360| 69 6e 74 20 74 79 70 65 | 3b 0a 3e 46 49 4c 45 20 |int type|;.>FILE |
|00000370| 2a 66 70 3b 0a 3e 0a 3e | 70 72 69 6e 74 66 28 22 |*fp;.>.>|printf("|
|00000380| 46 69 6c 65 3a 20 22 29 | 3b 0a 3e 67 65 74 73 28 |File: ")|;.>gets(|
|00000390| 69 6e 70 75 74 29 3b 0a | 3e 0a 3e 66 70 20 3d 20 |input);.|>.>fp = |
|000003a0| 66 6f 70 65 6e 28 69 6e | 70 75 74 2c 20 22 72 22 |fopen(in|put, "r"|
|000003b0| 29 3b 0a 3e 0a 3e 77 68 | 69 6c 65 28 21 66 65 6f |);.>.>wh|ile(!feo|
|000003c0| 66 28 66 70 29 29 0a 3e | 7b 0a 3e 66 67 65 74 73 |f(fp)).>|{.>fgets|
|000003d0| 28 63 72 61 70 2c 20 31 | 37 2c 20 66 70 29 3b 0a |(crap, 1|7, fp);.|
|000003e0| 3e 73 73 63 61 6e 66 28 | 63 72 61 70 2c 20 22 25 |>sscanf(|crap, "%|
|000003f0| 64 25 33 73 25 36 73 25 | 33 73 25 33 73 22 2c 20 |d%3s%6s%|3s%3s", |
|00000400| 74 79 70 65 2c 20 62 65 | 67 69 6e 2c 20 73 65 67 |type, be|gin, seg|
|00000410| 6d 65 6e 74 2c 20 73 65 | 67 5f 6c 65 6e 2c 20 6c |ment, se|g_len, l|
|00000420| 6f 61 64 29 3b 0a 3e 70 | 72 69 6e 74 66 28 22 25 |oad);.>p|rintf("%|
|00000430| 64 20 25 33 73 20 25 36 | 73 20 25 33 73 20 25 33 |d %3s %6|s %3s %3|
|00000440| 73 22 2c 20 74 79 70 65 | 2c 20 62 65 67 69 6e 2c |s", type|, begin,|
|00000450| 20 73 65 67 6d 65 6e 74 | 2c 20 73 65 67 5f 6c 65 | segment|, seg_le|
|00000460| 6e 2c 20 6c 6f 61 64 29 | 3b 0a 3e 0a 3e 7d 0a 3e |n, load)|;.>.>}.>|
|00000470| 7d 0a 3e 4e 6f 20 6d 61 | 74 74 65 72 20 77 68 61 |}.>No ma|tter wha|
|00000480| 74 20 49 20 64 6f 2c 20 | 69 74 20 61 6c 77 61 79 |t I do, |it alway|
|00000490| 73 20 27 62 75 73 20 65 | 72 72 6f 72 73 27 20 77 |s 'bus e|rrors' w|
|000004a0| 68 65 6e 20 49 20 73 73 | 63 61 6e 66 2e 20 20 49 |hen I ss|canf. I|
|000004b0| 27 76 65 20 74 72 69 65 | 64 0a 3e 69 74 20 73 65 |'ve trie|d.>it se|
|000004c0| 76 65 72 61 6c 20 64 69 | 66 66 65 72 65 6e 74 20 |veral di|fferent |
|000004d0| 77 61 79 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |ways, in|cluding |
|000004e0| 6d 61 6b 69 6e 67 20 63 | 72 61 70 20 6c 61 72 67 |making c|rap larg|
|000004f0| 65 72 2c 20 62 75 74 20 | 74 6f 0a 3e 6e 6f 20 61 |er, but |to.>no a|
|00000500| 76 61 69 6c 2e 20 20 49 | 66 20 61 6e 79 6f 6e 65 |vail. I|f anyone|
|00000510| 20 63 61 6e 20 68 65 6c | 70 20 6d 65 2c 20 49 20 | can hel|p me, I |
|00000520| 77 6f 75 6c 64 20 67 72 | 65 61 74 6c 79 20 61 70 |would gr|eatly ap|
|00000530| 70 72 65 63 69 61 74 65 | 20 69 74 2e 0a 3e 50 6c |preciate| it..>Pl|
|00000540| 65 61 73 65 20 72 65 73 | 70 6f 6e 64 20 74 6f 20 |ease res|pond to |
|00000550| 63 6d 6f 6e 67 6f 6c 64 | 40 6d 61 67 6e 75 73 2e |cmongold|@magnus.|
|00000560| 61 63 73 2e 6f 68 69 6f | 2d 73 74 61 74 65 2e 65 |acs.ohio|-state.e|
|00000570| 64 75 20 0a 3e 0a 3e 54 | 68 61 6e 6b 73 2c 0a 3e |du .>.>T|hanks,.>|
|00000580| 0a 3e 43 68 72 69 73 20 | 0a 0a 49 20 74 68 69 6e |.>Chris |..I thin|
|00000590| 6b 20 79 6f 75 20 6d 61 | 79 20 62 65 20 74 65 6c |k you ma|y be tel|
|000005a0| 6c 69 6e 67 20 73 73 63 | 61 6e 66 20 74 68 61 74 |ling ssc|anf that|
|000005b0| 20 22 74 79 70 65 22 20 | 63 61 6e 20 68 6f 6c 64 | "type" |can hold|
|000005c0| 20 33 20 0a 63 68 61 72 | 61 63 74 65 72 73 2e 20 | 3 .char|acters. |
|000005d0| 49 74 20 63 61 6e 20 61 | 63 74 75 61 6c 6c 79 20 |It can a|ctually |
|000005e0| 68 6f 6c 64 20 6f 6e 6c | 79 20 32 20 62 65 63 61 |hold onl|y 2 beca|
|000005f0| 75 73 65 20 74 68 65 20 | 73 74 72 69 6e 67 20 0a |use the |string .|
|00000600| 6e 65 65 64 73 20 74 6f | 20 62 65 20 6e 75 6c 6c |needs to| be null|
|00000610| 20 74 65 72 6d 69 6e 61 | 74 65 64 2e 20 54 68 65 | termina|ted. The|
|00000620| 20 73 61 6d 65 20 69 73 | 20 74 72 75 65 20 66 6f | same is| true fo|
|00000630| 72 20 74 68 65 20 6f 74 | 68 65 72 20 0a 64 65 73 |r the ot|her .des|
|00000640| 74 69 6e 61 74 69 6f 6e | 20 73 74 72 69 6e 67 73 |tination| strings|
|00000650| 2e 20 54 72 79 20 64 65 | 63 6c 61 72 69 6e 67 20 |. Try de|claring |
|00000660| 65 61 63 68 20 6f 66 20 | 74 68 65 6d 20 74 6f 20 |each of |them to |
|00000670| 62 65 20 6f 6e 65 20 62 | 79 74 65 20 0a 6c 6f 6e |be one b|yte .lon|
|00000680| 67 65 72 2e 0a 0a | |ger... | |
+--------+-------------------------+-------------------------+--------+--------+